<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateHomePagesTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('home_pages', function(Blueprint $table)
		{
			$table->integer('id', true);
			$table->string('img', 250)->nullable()->comment('图片');
			$table->integer('goods_id')->nullable()->comment('商品id');
			$table->integer('sort')->nullable()->comment('排序');
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('home_pages');
	}

}
